﻿<%@page import="cn.jdy.common.constant.GlobalConstant"%>
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="jdy" uri="http://www.qwe.com.cn/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>康养旅居宝</title>
      <jsp:include page="../common/common.jsp"/>
     
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    
</head>
<body>
    <div class="main" >
        <div class="apartList"  >
            <li>
                <img src="${data.imgUrl}" alt="">
                
                <div class="dateils">
                    <p>${data.title}</p>
                    <p>${data.province}</p>
                    <p>${data.houses}居/${data.square}平米/宜住${data.yzrs}人</p>
                    <p></p>
                </div>
            </li>
        </div>
   

        <div class="dateil">
             <ul class="selects">
                <li>
                    <div class="select">
                        <i class="iconfont icon-confirm"></i>
                    </div>
                    <div style="width:100%;">
                        <p>
                        
                                  <c:if test="${data.isfb eq '0'}">
			                                可提前入住
			                                </c:if>
			                                   <c:if test="${data.isfb eq '1'}">
			                                不可提前入住
			                                </c:if>	
			                                
	     			<input type="hidden"  id="isfb"   value="${data.isfb}">	
			                                
                        </p>
                        <div class="ios-checkbox">
                          <!--  <input type="checkbox" id="ios-checkbox"    onchange="changecke()"  checked="1"  value="1" name="emulate-ios-button" class="raw-checkbox">
                            <label for="ios-checkbox" class="emulate-ios-button"></label>-->  
                        </div>
                        <p class="tip">按时入住有更多奖励积分哦</p> 
                    </div>
                </li>
                <li>
                    <div class="select">
                        <i class="iconfont icon-confirm"></i>
                    </div>
                    <p>预期奖励积分:<span>
                     <c:if test="${data.refund eq '0'}">
			              ${data.reduceprice} +<fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*1}" pattern="#.0"/> 
			         <input type="hidden"  id="jljf"   value="<fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*1+data.reduceprice}" pattern="#.0"/>">	
			           </c:if>
			           <c:if test="${data.refund eq '1'}">
			                   ${data.reduceprice}  +  <fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*30}" pattern="#.0"/> 
			         <input type="hidden"  id="jljf"   value="<fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*30+data.reduceprice}" pattern="#.0"/>">	
			           </c:if>
			          <c:if test="${data.refund eq '2'}">
			                        ${data.reduceprice}    + <fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*90}" pattern="#.0"/> 
			         <input type="hidden"  id="jljf"   value="<fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*90+data.reduceprice}" pattern="#.0"/>">	
			          </c:if>
			          <c:if test="${data.refund eq '3'}">
			                    ${data.reduceprice} +  <fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*365}" pattern="#.0"/> 
			         <input type="hidden"  id="jljf"   value="<fmt:formatNumber type="number" value="${data.lv*data.reduceprice/365*365+data.reduceprice}" pattern="#.0"/>">	
			           </c:if>		
        
                    </span></p>
                      </li>
                      
                         <li>
                      <div class="select">
                        <i class="iconfont icon-confirm"></i>
                    </div>
                    <p>入住天数:
                    <span>
					            <c:if test="${data.refund eq '0'}">
			                               1
			                               	var rzts=$("#rzts").val();
			                             	 <input type="hidden"  id="rzts"   value="1">	
   	 										<input type="hidden"  id="rzsj"   value="1">	
			                                </c:if>
			                       <c:if test="${data.refund eq '1'}">
			                              30
			                                  	 <input type="hidden"  id="rzts"   value="30">	
   	 										<input type="hidden"  id="rzsj"   value="30">	
			                       </c:if>
			                       	 <c:if test="${data.refund eq '2'}">
			                               90
			                                   	 <input type="hidden"  id="rzts"   value="90">	
   	 										<input type="hidden"  id="rzsj"   value="90">	
			                                </c:if>
			                       <c:if test="${data.refund eq '3'}">
			                                365
			                                    	 <input type="hidden"  id="rzts"   value="365">	
   	 										<input type="hidden"  id="rzsj"   value="365">	
			                       </c:if>		
			         		               天           
					</span></p>
                        </li>
                        
                     <li>
                      <div class="select">
                        <i class="iconfont icon-confirm"></i>
                    </div>
                    <p>多久后入住:<span>
                                <c:if test="${data.refund eq '0'}">
			                               1
			                                </c:if>
			                       <c:if test="${data.refund eq '1'}">
			                              30
			                       </c:if>
			                       	 <c:if test="${data.refund eq '2'}">
			                               90
			                                </c:if>
			                       <c:if test="${data.refund eq '3'}">
			                                365
			                       </c:if>		
			         		               天    
                    </span></p>
                    </li>
                    
                
            </ul>
        </div>
    </div>
    <ul class="buttom orderconfirm">
        <li class="price"><s>￥		     
  			 ${data.price}
        </s>
			会员价：￥ <span>
		${data.reduceprice}元
		    <input type="hidden"  id="reduceprice"   value="${data.reduceprice}">	
			</span>
			</li>
        <li class="now"  onclick="wxprepaydodashng(${data.id},${data.mallId}) " ><a href="#"  >提交订单</a></li>
    </ul>
</body>
 <script src="${path}/js/jquery-3.2.1.min.js"></script>
<script src="${path}/js/swiper.min.js"></script>
<script src="${path}/js/swiperTab.js"></script>
<script src="${path}/js/orderds.js"></script>
<script src="${path}/js/swiper.min.js"></script>
<script>
 

var ioscheckbox = document.querySelector('#ios-checkbox').checked;
function changecke(){
    ioscheckbox = ioscheckbox ? false : true;
    if(ioscheckbox==true){
    $("#ioscheckbox").val("1");
    }else{
     	$("#ioscheckbox").val("2");
    }
}
</script>
</html>
 

